package com.xc.springsecurity.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MyLoginController {

    @RequestMapping("/mylogin.html")
    public String mylogin(Model model) {
        model.addAttribute("SPRING_SECURITY_LAST_EXCEPTION","用户名或密码错误");
        return "mylogin";
    }
}
